package com.molamil.outboard {
	import flash.events.Event;

	/**
	 * @author martindyrby
	 */
	 
	public class MidiEvent extends Event {
		public static const MESSAGE : String = "message";
		public static const NOTE_ON : String = "noteOn";
		public static const NOTE_OFF : String = "noteOff";
		public static const PROGRAM_CHANGE : String = "programChange";
		public static const CONTROL_CHANGE : String = "controlChange";
		private var _value : uint;
		private var _channel : uint;
		private var _typeId : uint;

		public function MidiEvent(type : String, typeId:uint, value:uint, channel:uint, bubbles : Boolean = false, cancelable : Boolean = false) {
			_value = value;
			_typeId = typeId;
			_channel = channel;
			super(type, bubbles, cancelable);
		}
		
		public function get value() : uint {
			return _value;
		}
		
		public function get typeId() : uint {
			return _typeId;
		}

		public function get channel() : uint {
			return _channel;
		}
	}
}
